package com.qww;

public class Exec02 {

    public static void main(String[] args) {
        Student stu1 = new Student();
        Student stu2 = new Student();
        stu1.score = 99;
        stu2.score = 80;
        System.out.println("1: stu1: score=" + stu1.score + ", stu2: score=" + stu2.score);
        stu1 = stu2;
        System.out.println("2: stu1: score=" + stu1.score + ", stu2: score=" + stu2.score);
        stu2.score = 89.0f;
        System.out.println("3: stu1: score=" + stu1.score + ", stu2: score=" + stu2.score);
    }
}

class Student {
    int sno;
    float score;
}
